import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useDashboardStore = defineStore('dashboard', () => {
  const congestionAlarmVisible = ref(false)

  function toggleCongestionAlarm() {
    congestionAlarmVisible.value = !congestionAlarmVisible.value
  }

  return {
    congestionAlarmVisible,
    toggleCongestionAlarm,
  }
})
